[NET] back: Make use of the simplicity of tasklets in net_rx_action
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 27 Jul 2006 12:34:09 +0000 (13:34 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 27 Jul 2006 12:34:09 +0000 (13:34 +0100)
commit8fd94b35bf87f80ff615f62d3b2f4140162eba93
tree1d29920697e5a797e554c38f02b11e807baee851
parentb93f5d8456e268c38274a1ff7276e55fa9f4bbeb
[NET] back: Make use of the simplicity of tasklets in net_rx_action

Tasklets have the property that each one is running on only one CPU at
any time.  This means that you don't have to worry about the tasklet
racing against itself.  Therefore any resources used by just a single
tasklet does not need to be guarded by locks.

Since net_rx_action is the only user of alloc_mfn, we can remove the
mfn_lock that guard it.

The notify_list array is huge by Linux standards so placing it on the
stack is unsafe.  Since net_rx_action is not re-entrant, we can simply
make it static.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/netback/netback.c